package cn.pupil.design.mediator;

import java.sql.Connection;
import java.util.Map;

/**
 * @Description: 配置类
 * @Author: pupil
 * @Date: 2024/07/29 下午 6:23
 */
public class Configuration {

    protected Connection connection;
    protected Map<String,String> dataSource; // 数据源配置信息
    protected Map<String,XNode> mapperElement; // SQL语句信息

    public void setConnection(Connection connection) {
        this.connection = connection;
    }

    public void setDataSource(Map<String, String> dataSource) {
        this.dataSource = dataSource;
    }

    public void setMapperElement(Map<String, XNode> mapperElement) {
        this.mapperElement = mapperElement;
    }
}
